package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StemealDishMapper {
    /**
     * 根据菜品的id查询是否关联过套餐
     *
     * @param ids
     * @return
     */
    List<Long> findSetmealIdsByDishIds(List<Long> ids);

    void saveDish(List<SetmealDish> setmealDishes);

    List<SetmealDish> findByDishId(Long id);

    void delByDishId(Long aLong);

    SetmealDish findBydishId(Long id);

    List<SetmealDish> findBySetmealId(Long id);
}
